#include <linux/init.h>
#include <linux/module.h>

static int __init printkall_init(void)
{
    printk(KERN_EMERG "loglevel 0!\n");
    printk(KERN_ALERT "loglevel 1!\n");
    printk(KERN_CRIT "loglevel 2!\n");
    printk(KERN_ERR "loglevel 3!\n");
    printk(KERN_WARNING "loglevel 4!\n");
    printk(KERN_NOTICE "loglevel 5!\n");
    printk(KERN_INFO "loglevel 6!\n");
    printk(KERN_DEBUG "loglevel 7!\n");
    printk("loglevel default!\n");
    return 0;
}

static void __exit printkall_exit(void)
{
    printk(KERN_EMERG "loglevel 0!\n");
    printk(KERN_ALERT "loglevel 1!\n");
    printk(KERN_CRIT "loglevel 2!\n");
    printk(KERN_ERR "loglevel 3!\n");
    printk(KERN_WARNING "loglevel 4!\n");
    printk(KERN_NOTICE "loglevel 5!\n");
    printk(KERN_INFO "loglevel 6!\n");
    printk(KERN_DEBUG "loglevel 7!\n");
    printk("loglevel default!\n");
}

module_init(printkall_init);
module_exit(printkall_exit);

MODULE_LICENSE("GPL");
